import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { Toast,Lazyload  } from 'vant';
import Vant from 'vant'
import App from './App.vue'
import router from './router'
import './assets/css/utils.css'
import './assets/iconfont/iconfont.js'
import 'vant/es/toast/style';
import store from './store';
const app = createApp(App)
// const isLoggedIn = localStorage.getItem('setLoginStatus');// 获取登录状态
// const savedUser = localStorage.getItem('auth');// 获取登录用户信息
// if (savedUser) {
//   store.commit('setLoginStatus', isLoggedIn);
//   store.commit('setUser', JSON.parse(savedUser));
// }
//挂载全局属性
// app.config.globalProperties.$eventBus = mitt();

app.use(createPinia())
app.use(router)
app.use(Toast)
app.use(Lazyload);
app.use(Vant)
app.use(store)
app.mount('#app')